/*
 * BLinkDirect.java
 *
 * Created on September 9, 2007, 2:00 AM
 *
 * Copyright 2008 David D. Emory
 * 
 * This file is part of Five Points. See <http://www.fpdev.org> for
 * additional information regarding the project.
 * 
 * Five Points is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Five Points is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Five Points.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.fpdev.core.basenet;

import org.fpdev.core.Scenario;
import org.fpdev.core.transit.TransitPath;
import org.fpdev.apps.rtemaster.gui.map.MapCanvas;

/**
 * The BLink implementation for a "direct" link in a TransitPath. This is a link
 * that does not actually correspond to a a physical real-world connection in 
 * the BaseNetwork, but instead represents the portion of a TransitPath that 
 * effective "skips" serveral BNodes on account of there not being stops at 
 * those points.
 * 
 * @author demory
 */
public class BLinkDirect extends BLink {

  public BLinkDirect(Scenario s, int id, BNode fNode, BNode tNode, String dispName, int lenFt) {
    super(s, id, fNode, tNode, dispName, lenFt);
  }

  @Override
  public int getType() {
    return 0;
  }

  @Override
  public int getClassType() {
    return BLink.CLASS_DIRECT;
  }

  @Override
  public void drawBG(MapCanvas canvas,Scenario scen) { }

  @Override
  public void drawFG(MapCanvas canvas,Scenario scen) {
    /*panel.setColor(Color.yellow);
    panel.setStroke(new BasicStroke(1));
    panel.drawLine(x1_, y1_, x2_, y2_);*/
  }

  @Override
  public int getDrawWidth(MapCanvas canvas,Scenario scen) {
    return 0;
  }

  @Override
  public boolean isWalkable() {
    return false;
  }

  @Override
  public boolean isBikeable(BNode start) {
    return false;
  }

  @Override
  public boolean supportsTransitType(TransitPath.Type type, Scenario scen, BaseNetwork baseNet) {
    return true;
  }

}



























